/***************************************************
 @Name :        小铭同学
 @Time :        2025-09-03
 @Email :       LiaoMingWJ233@163.com
 @Comment :     火焰 人体红外 光电 设备状态获取
 @FileName :    iodevice.cpp
 @Version :     1.0
****************************************************/


#include "iodevice.h"

ioDevice::ioDevice(QObject *parent) : QObject(parent)
{
    int ret = io_init();
        if(ret < 0)
        {
            qDebug()<<"get frame faile";
        }
}

int ioDevice::getFrame()
{
    int ret = get_io_frame();
    if(ret < 0)
    {
        qDebug()<<"get frame faile";
    }
    return ret;
}

int ioDevice::getInfread()
{
    int ret = get_io_infread();
    if(ret < 0)
    {
        qDebug()<<"get infread faile";
    }
    return ret;
}

int ioDevice::getPhotowitch()
{
    int ret = get_io_photoswitch();
    if(ret < 0)
    {
        qDebug()<<"get photowitch faile";
    }
    return ret;
}
